package com.jzo2o.customer.controller.open;

import com.jzo2o.customer.model.dto.request.InstitutionRegisterReqDTO;
import com.jzo2o.customer.service.ServerProvideService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("openServeProviderController")
@RequestMapping("/open/serve-provider")
@Api(tags = "机构登录")
public class ServerProvideController {

    @Autowired
    private ServerProvideService serverProvideService;

    @PostMapping("/institution/register")
    public void register(@RequestBody InstitutionRegisterReqDTO dto) {
        serverProvideService.inputInfo(dto);
    }
}
